import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image, Picker, Swiper, SwiperItem } from '@tarojs/components'
import image_0 from '../../../img/a.jpg'
import {AtTag,AtButton} from 'taro-ui'
import './projects.scss'
import reactMixin from 'react-mixin';
import myJs from '../../pages/projects/projectsjs.js'
import app from '../../../main.js'

export default class Projects extends Component {
    config = {
        navigationBarTitleText: '项目首页'
    }
    constructor () { 
        super(...arguments); 
        this.state = this.getData(); 
    }
    componentWillMount () {}
    componentDidMount () {}
    componentWillUnmount () {}
    componentDidShow () {}
    componentDidHide () {}
    navigateTo(url) { Taro.navigateTo({url: url}) }
    render () {
        return (
            <View className='projects'>
                <View className='at-article class_0' onClick={this.navigateTo.bind(this, "../project/project")}>
                    <View className='at-article__h2 '>项目名称：XXXX</View>
                    <View className='at-article__h3 '>申请方</View>
                    <View className=' class_1'>
                        <View className='at-article__info class_2'>2019年11月1日至2019年12月1日</View>
                        <AtTag type='primary' circle={true} active={true} className=' class_3'>收集中</AtTag>
                    </View>
                    <Image className='at-article__img ' src={image_0}></Image>
                </View>
                <View className=' class_4'></View>
                <View className='at-article class_5'>
                    <View className='at-article__h2 '>项目名称：XXXX</View>
                    <View className='at-article__h3 '>申请方</View>
                    <View className=' class_6'>
                        <View className='at-article__info class_7'>2019年11月1日至2019年12月1日</View>
                        <AtTag type='primary' circle={true} active={true} className=' class_8'>收集中</AtTag>
                    </View>
                    <Image className='at-article__img ' src={image_0}></Image>
                </View>
                <View className=' class_9'>
                    <AtButton type='primary' circle={true} size='small' className=' class_10'>添加病历</AtButton>
                    <AtButton type='primary' circle={true} size='small' className=' class_11'>个人进度</AtButton>
                </View>
            </View>
        );
    }
}
reactMixin.onClass(Projects,myJs);